#ifndef FKQUICKROWMODEL_H
#define FKQUICKROWMODEL_H

#include <QAbstractListModel>

class FKQuickRowModel:public QAbstractListModel{
    Q_OBJECT
public:
    FKQuickRowModel(QObject *parent = 0);
    ~FKQuickRowModel();
    QVariant data(const QModelIndex &index, int role) const;
    bool setData(const QModelIndex &index, const QVariant &value, int role);
    int rowCount(const QModelIndex &parent) const;
    QHash<int,QByteArray> roleNames() const;
    void setSource(const QList<QMap<int,QVariant> >& source);
    QList<QVariant> filterData(const int &targetRole, const int &conditionRole, const QVariant &condition) const;
private:
    QList<QMap<int,QVariant> > _source;
    int _rows;
};

#endif // FKQUICKROWMODEL_H
